package cn.jcby.app.lebu.controller;


import cn.jcby.app.lebu.service.UserInviteMotionRecordService;
import cn.jcby.app.lebu.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * 邀请发起运动记录
 *
 * @author lht
 * @email 
 * @date 2023-12-17 13:36:30
 */
@RestController
@RequestMapping("/invite/motion")
@Api(tags="邀请发起运动记录")
public class UserInviteMotionRecordController {
    @Autowired
    private UserInviteMotionRecordService userInviteMotionRecordService;



    /**
     * 保存
     */
    @PostMapping("/add")
    @ApiOperation("邀请ta")
    public Result save(@RequestParam("inviteUserId") String inviteUserId) {
        userInviteMotionRecordService.add(inviteUserId);
        return Result.ok();
    }

}
